package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TAccountMapper;
import com.ruoyi.system.domain.TAccount;
import com.ruoyi.system.service.ITAccountService;

/**
 * 资金账户Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TAccountServiceImpl implements ITAccountService 
{
    @Autowired
    private TAccountMapper tAccountMapper;

    /**
     * 查询资金账户
     * 
     * @param aid 资金账户主键
     * @return 资金账户
     */
    @Override
    public TAccount selectTAccountByAid(Long aid)
    {
        return tAccountMapper.selectTAccountByAid(aid);
    }

    /**
     * 查询资金账户列表
     * 
     * @param tAccount 资金账户
     * @return 资金账户
     */
    @Override
    public List<TAccount> selectTAccountList(TAccount tAccount)
    {
        return tAccountMapper.selectTAccountList(tAccount);
    }

    /**
     * 新增资金账户
     * 
     * @param tAccount 资金账户
     * @return 结果
     */
    @Override
    public int insertTAccount(TAccount tAccount)
    {
        return tAccountMapper.insertTAccount(tAccount);
    }

    /**
     * 修改资金账户
     * 
     * @param tAccount 资金账户
     * @return 结果
     */
    @Override
    public int updateTAccount(TAccount tAccount)
    {
        return tAccountMapper.updateTAccount(tAccount);
    }

    /**
     * 批量删除资金账户
     * 
     * @param aids 需要删除的资金账户主键
     * @return 结果
     */
    @Override
    public int deleteTAccountByAids(Long[] aids)
    {
        return tAccountMapper.deleteTAccountByAids(aids);
    }

    /**
     * 删除资金账户信息
     * 
     * @param aid 资金账户主键
     * @return 结果
     */
    @Override
    public int deleteTAccountByAid(Long aid)
    {
        return tAccountMapper.deleteTAccountByAid(aid);
    }
}
